package com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.Fragment_view;

import android.annotation.SuppressLint;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.hzdesk.media.matvector.koreabatch.client.my_paperless.R;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.BaseFragment;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.Fragment_persenter.MyOrganizationMemberspersenter;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.fragment_contract.IMyOrganizationMembersContract;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.logic.view.MyOrganizationActivity;

import de.hdodenhof.circleimageview.CircleImageView;

/**
 * Created by Administrator on 2018/8/13.
 * 杭州席媒科技有限公司  Developers  刘传华  10
 * 佛祖镇楼 bug辟易
 */

public class MyOrganizationMembersFragment extends BaseFragment implements IMyOrganizationMembersContract.IMyOrganizationMembersView {
    private RecyclerView recyclerview;
    private RecyclerView bottom_recyclerview;
    private CircleImageView iv_head;
    private TextView tv_admin_name;
    private TextView tv_position;
    private TextView tv_admin;
    private MyOrganizationMemberspersenter mMyOrganizationMemberspersenter = new MyOrganizationMemberspersenter(this);
    private TextView tv_determine;

    @Override
    protected void cancellationControls() {

    }

    @Override
    protected void initDate() {
        mMyOrganizationMemberspersenter.initRecyclerview(recyclerview,mContext);
       mMyOrganizationMemberspersenter.initBottomRecyclerview(bottom_recyclerview,mContext);
        tv_determine.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ( (MyOrganizationActivity)getActivity()).onClickedIvRight() ;
            }
        });
    }

    @Override
    protected View getChildFragmentView() {
        View view = View.inflate(mContext, R.layout.fragment_my_organization_members,null);
        recyclerview = view.findViewById(R.id.fragment_my_organization_members_recyclerview);
        bottom_recyclerview = view.findViewById(R.id.fragment_my_organization_members_bottom_recyclerview);
        iv_head = view.findViewById(R.id.fragment_my_organization_members_iv_head);
        tv_admin_name = view.findViewById(R.id.fragment_my_organization_members_admin_name);
        tv_position = view.findViewById(R.id.fragment_my_organization_members_tv_position);
        tv_admin = view.findViewById(R.id.fragment_my_organization_members_tv_admin);
        tv_determine = view.findViewById(R.id.fragment_my_organization_members_tv_determine);
        return view;
    }

    @SuppressLint("LongLogTag")
    @Override
    public void onStart() {
        super.onStart();
       // Log.e("MyOrganizationMembersFragment", "onStart: MyOrganizationMembersFragment==================>" );
    }

    @Override
    protected void onClickedTvRight() {

    }

    @Override
    protected void onClickedIvRight() {

    }

    @Override
    protected void onClickedIvLeft() {

    }
}
